<?php
/**
 * 必须使用二维数组
 */
return [
    'auth_menu' => [
        [
            //父级id
            'pid'   => 18,
            //菜单名称
            'title' => '友情链接',
            //图标
            'icon'  => '',
            //类型：0=目录；1=菜单
            'type'  => '1',
            //地址url
            'node'  => '/app/link/link',
            //排序（越小越靠前）
            'sort'  => 100
        ]
    ],
    'auth_rule' => [
        [
            'type'        => 1,
            'node'        => '/app/link/link',
            'title'       => '友情链接管理',
            'is_auth'     => 1,
            'create_time' => time()
        ],
        [
            'type'        => 2,
            'node'        => '/app/link/link/index',
            'title'       => '友情链接管理',
            'is_auth'     => 1,
            'create_time' => time()
        ],
        [
            'type'        => 2,
            'node'        => '/app/link/link/add',
            'title'       => '添加友情链接',
            'is_auth'     => 1,
            'create_time' => time()
        ],
        [
            'type'        => 2,
            'node'        => '/app/link/link/edit',
            'title'       => '编辑友情链接',
            'is_auth'     => 1,
            'create_time' => time()
        ],
        [
            'type'        => 2,
            'node'        => '/app/link/link/delete',
            'title'       => '删除友情链接',
            'is_auth'     => 1,
            'create_time' => time()
        ]
    ]
];
